#include "PutRequest.h"

PutRequest::PutRequest() {
	method = "PUT";
	uri = "";
	version = "HTTP/1.1";
}

PutRequest::PutRequest(stringstream& s) : Request(s)
{ //runs Request(s) logic, then PutRequest(s) logic
        method = "PUT";
}

PutRequest PutRequest::operator =(PutRequest& rhs) {
        method = rhs.method;
	uri  = rhs.uri;
	version = rhs.version;
	headers = rhs.headers; // May need to iterate through headers and add in items.
	return *this;
}
Response PutRequest::processRequest()
{
    Response resp;
    resp.statusCode = "501";
    resp.reasonPhrase = "Not Implemented";
    resp.MakeHeader();
    return resp;
}
void PutRequest::PrintInfo()
{
    Request::PrintInfo();
}
